/* Contenedor principal del slider */
.swiper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.seccion-productos {
  max-width: 1200px;
  margin: 40px auto;   
  padding: 0 20px;    
}

.swiper-slide {
  flex-shrink: 0;
    box-sizing: border-box;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease-in-out;
    max-width: 1200px;
     height: auto !important;
}
/* Card principal */
.tarjeta-producto,
.producto-card,
.producto-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  min-height: 360px;   
  box-sizing: border-box;
}

.imagen-producto {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.imagen-producto img {
  max-height: 160px;
  object-fit: contain;
}

.info-producto {
  flex-grow: 1;
  padding: 10px 0;
  min-height: 120px;  
  max-height: 120px;   
  overflow: hidden;   
}


.info-producto .nombre {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3em;
  margin: 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;   
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


.btn-cotizar {
  margin-top: auto;  
}
.swiper-slide:hover {
    transform: translateY(-4px);
}
.tarjeta-producto {
    border: 1px solid #c9c9c9;
    border-radius: 12px;
    background: #fff;
    padding: 15px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    width: 217px;
    height: 450px;
     min-height: 320px; 
}
.tarjeta-producto:hover {
      border-color: red; 
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.imagen-producto {
    position: relative;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.imagen-producto img {
    max-height: 160px;
    object-fit: contain;
}
.btn-favorito {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: #fff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.btn-favorito:hover {
    background: #f8f8f8;
}

.info-producto {
    text-align: left;
    margin-top: 10px;
    min-height: 140px;
}
.info-producto .marca {
    font-size: 12px;
    font-weight: bold;
    color: #444;
}
.info-producto .nombre {
    font-size: 14px;
    font-weight: 600;
  
      margin: 4px 0;
  line-height: 1.3em;
  display: -webkit-box;
  -webkit-line-clamp: 2;  
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.info-producto .sku {
    font-size: 11px;
    color: gray;
}
.info-producto .estado {
    font-size: 13px;
    color: #222;
    font-weight: 500;
}

.btn-cotizar {
    display: block;
    background: #ff0000;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    transition: background 0.3s;
}
.btn-cotizar:hover {
    background: #979797;
}

/* Botón agregar al carrito */
.btn-agregar-carrito {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 100%;
  font-size: 14px;
  padding: 10px 18px;
  position: absolute;
  left: 50%;              
  bottom: 15px;           
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  z-index: 2;
}

/* Mostrar al hacer hover */
.producto-item:hover .btn-agregar-carrito {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Hover del botón */
.btn-agregar-carrito:hover {
  background: #222;
  transform: translateX(-50%) translateY(-3px);
}
.swiper-slide img {
    
    object-fit: cover;
}


.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
    color: black;
}


.swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #000;
}
.producto-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    
}

.imagen-producto {
    height: 180px;
    object-fit: cover;
}

.info-producto {
    padding: 8px;
    text-align: left;
      flex-grow: 1;        
  min-height: 140px;   
  max-height: 140px;    
  overflow: hidden;  
}

.nombre {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3em;
}
.producto-card {
    transition: transform .2s ease;
}
.producto-card:hover {
    transform: scale(1.05);
}
.card-title {
    font-size: 14px;
    min-height: 40px;
}

.precio {
    color: #007600;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 2px;
}
.producto-item {
    background: #fff;
    border-radius: 8px;
    transition: all .2s ease;
}

.producto-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.producto-item h6 {
    font-size: 14px;
    min-height: 38px; 
}


.precio-anterior {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.descuento {
    color: #ff3b3b;
    font-weight: bold;
    margin-left: 5px;
}

.swiper-button-next,
.swiper-button-prev {
    width: 32px!important;          
    height: 32px!important;         
    border-radius: 50%; 
    background: #fff;     
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    color: #333;
    transition: all .2s ease;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px!important;   
    font-weight: bold;
}



.cupon {
    display: inline-block;
    background: #f5f5f5;
    color: #333;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 3px;
}
.producto-item {
    position: relative;
    overflow: hidden;
}

.btn-agregar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.producto-item:hover .btn-agregar {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-5px);
}

.envio {
    color: #00a650;
    font-size: 12px;
    font-weight: 500;
}